package com.xr.maintain.entity.oracle;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import org.apache.ibatis.type.Alias;

import java.util.Date;

/**
 * <p>
 * 机构审核记录表
 * </p>
 *
 * @author Gonna
 * @since 2021-05-07
 */
@TableName("TB_AUDITRECORD")
@Getter
@Setter
@EqualsAndHashCode
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Alias("auditrecordOrcale")
public class AuditrecordOracle {
    /**
     * ID
     */
    @TableId("id")
    private Long id;
    /**
     * 机构ID
     */
    @TableField("COMPANYID")
    private Long companyId;
    /**
     * 机构名称
     */
    @TableField("COMPANYNAME")
    private String companyName;
    /**
     * 审核状态
     *  2 = 驳回
     *  3 = 通过
     *  4 = 取消
     */
    @TableField("AUDITRESULT")
    private Integer auditResult;
    /**
     * 审核意见
     */
    @TableField("AUDITOPINION")
    private String auditOpinion;
    /**
     * 审核时间
     */
    @TableField("AUDITDATE")
    private Date auditDate;
    /**
     * 默认状态
     */
    @TableField("STATE")
    private Integer state;

    @Override
    public String toString() {
        return "AuditrecordOracle{" +
                "id=" + id +
                '}';
    }
}
